package practice;

import java.io.*;

public class Text06 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("calcCharNum.txt");
        String b="Aa";
        int a;
        int num=0;
        while ((a=fis.read())!=-1){
            char word=(char) a;
            if (b.indexOf(word)!=-1){
                num+=1;
            }
        }
        System.out.println("共有A和a:"+num+"个");
    }
}
